import request from "@/utils/request";

//获取地图列表
export function getMapList(query){
    return request<ResponseGlobal>('get','/robot/map/page',query);
}

//新增地图
export function addMap(data){
    return request<ResponseGlobal>('post','/robot/map/save',data);
}

//更新地图
export function updateMap(id,data){
    return request<ResponseGlobal>('post', `robot/map/update/${id}`,data);
}

//获取地图详情
export function getMapDetail(id){
    return request<ResponseGlobal>('get', `robot/map/get/${id}`);
}

//删除地图
export function deleteMap(id){
    return request<ResponseGlobal>('delete', `/robot/map/delete/${id}`);
}